package com.wq.rabbit.consumer;


import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@RabbitListener(queues = "wuquan")
@Component
public class consumer1 {
    @RabbitHandler
    public void gitMsg(String msg){
        System.out.println("wuquan消费者已接受信息"+msg);
    }
}
